// Copyright (c) Huoty, All rights reserved
// Author: Huoty <sudohuoty@163.com>
// CreateTime: 2021-01-05 13:19:51

package main

import "fmt"

type Student struct {
    name string
    age int
    address string
}

func main() {
    stu1 := Student{name: "Huoty", age: 18, address: "北京朝阳"}
    stu2 := Student{"huayong", 16, "贵州贵阳"}
    stu3 := Student{address: "海外", age: 1, name: "XXX"}
    fmt.Println(stu1)
    fmt.Println(stu2)
    fmt.Println(stu3)

    var stu4 Student
    stu4.name = "Haha"
    fmt.Println(stu4)
}
